function CreatEditor( obj ,width , height , introduce ){	
	//$("#"+ obj +"").html("Loading...");
	
	if( !height ) height = 200;
	if( !introduce ) introduce = 'introduce';
	
	var oFCKeditor = new FCKeditor( obj );	
	oFCKeditor.BasePath = fckEditPath ; 
	oFCKeditor.DefaultLanguage = "en";
	oFCKeditor.Height = height; 
	
	if(!width) oFCKeditor.Width	= $("#"+ obj ).width() ; 
	else oFCKeditor.Width	= width ;
	
	oFCKeditor.ToolbarSet	= introduce ;
	oFCKeditor.ReplaceTextarea();
	
	var heightBottom = '<input type="button" value="" id="'+ obj+'_heightUp" value="+" class="changeHeight" />'+
		'<input type="button" value="" id="'+ obj+'_heightDown" value="-" class="changeHeight"   />';	
	$('#'+obj +"___Frame").after(heightBottom);
	
	$('#'+ obj +'_heightUp').click(function(){ FCKeditor_Height('+','#'+obj+'___Frame') });
	$('#'+ obj +'_heightDown').click(function(){ FCKeditor_Height('-','#'+obj+'___Frame') });
	
}

function InserImg(obj,img)
{
	var oEditor = FCKeditorAPI.GetInstance(obj);
	oEditor.InsertHtml('<img src="'+ img +'">');
} 

function FCK_Empty(obj){
	var editor = FCKeditorAPI.GetInstance(obj); 
    editor.EditorDocument.body.innerHTML = "";	
}

function FCK_Focus(obj)
{
	var oEditor = FCKeditorAPI.GetInstance( obj );
	oEditor.Focus();
}

function FCKeditor_Height(H,obj){
	if('+' == H ) $(obj).animate({  height: $(obj).height() + 200 }, "normal");
	else if('-' == H  && $(obj).height() >= 300 ) $(obj).animate({  height: $(obj).height() - 200 }, "normal");;
}